//
//  vistors_Cell.m
//  K-Music
//
//  Created by LoGUYU on 16/1/15.
//  Copyright © 2016年 CHUN. All rights reserved.
//

#import "vistors_Cell.h"

@implementation vistors_Cell


- (void)creatUI
{
    self.icon = [[UIImageView alloc] init];
    [self.contentView addSubview:self.icon];
    
    //歌手名
    self.titleName = [[UILabel alloc] init];
    self.titleName.textColor = [UIColor orangeColor];
    self.titleName.font = [UIFont systemFontOfSize:15.0f];
    [self.contentView addSubview:self.titleName];
    
    self.songerLevel = [[UILabel alloc] init];
    self.songerLevel.font = [UIFont systemFontOfSize:13.0f];
    [self.contentView addSubview:self.songerLevel];
    
    self.moneyLevel = [[UILabel alloc] init];
    self.moneyLevel.font = [UIFont systemFontOfSize:13.0f];
    [self.contentView addSubview:self.moneyLevel];
    
    self.songerDetail = [[UILabel alloc] init];
    self.songerDetail.font = [UIFont systemFontOfSize:13.0f];
    [self.contentView addSubview:self.songerDetail];
    
    [self.icon mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView.mas_left).with.offset(15);
        make.width.and.height.mas_equalTo(@60);
        make.top.equalTo(self.contentView.mas_top).with.offset(10);
    }];
    
    [self.titleName mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.icon.mas_right).with.offset(10);
        make.top.equalTo(self.contentView.mas_top).with.offset(15);
    }];
    
    [self.songerLevel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.icon.mas_right).with.offset(10);
        make.top.equalTo(self.titleName.mas_bottom).with.offset(5);
    }];
    
    [self.moneyLevel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.songerLevel.mas_right).with.offset(10);
        make.top.equalTo(self.titleName.mas_bottom).with.offset(5);
    }];
    
    [self.songerDetail mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.icon.mas_right).with.offset(10);
        make.top.equalTo(self.songerLevel.mas_bottom).with.offset(5);
    }];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
